﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        th {
            text-align: center
        }

    </style>
    <div style="text-align: center">
        <asp:GridView
            ID="GV1"
            runat="server"
            OnRowDeleting="GV1_RowDeleting"
            OnRowUpdating="GV1_RowUpdating"
            OnRowEditing="GV1_RowEditing"
            OnRowCancelingEdit="GV1_RowCancelingEdit"
            AutoGenerateColumns="false"
            Width="1552px" CssClass="table">
            <Columns>
                <asp:BoundField DataField="Id" HeaderText="ID" />
                <asp:BoundField DataField="Title" HeaderText="标题" />
                <asp:BoundField DataField="Content" HeaderText="内容" />
                <asp:BoundField DataField="Author" HeaderText="作者" />
                <asp:BoundField DataField="Remarks" HeaderText="备注" />
                <asp:CommandField ShowHeader="true" HeaderText="进阶操作" ShowDeleteButton="true" ShowEditButton="true" ShowSelectButton="true" />
            </Columns>
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>

    </div>
    <asp:Button Text="添加" runat="server" ID="btnAdd" OnClick="btnAdd_Click" BorderStyle="Solid" Width="1364px" />


</asp:Content>
